export const tableOption = {
  searchMenuSpan: 6,
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  addBtn: false,
  editBtn: false,
  viewBtn: false,
  delBtn: false,
  menuWidth: 350,
  column: [
    {
      label: '五官ID',
      prop: 'featureId',
      width: 80,
      hide: true
    },
    {
      label: '五官名称',
      prop: 'featureName',
      search: true,
      rules: [
        { required: true, message: '请输入五官名称', trigger: 'blur' },
        { max: 50, message: '长度不能超过50个字符', trigger: 'blur' }
      ]
    },
    {
      label: '五官类型',
      prop: 'featureType',
      type: 'select',
      search: true,
      dicData: [
        { label: '左眼', value: 1 },
        { label: '右眼', value: 2 },
        { label: '左眉', value: 3 },
        { label: '右眉', value: 4 },
        { label: '左腮红', value: 5 },
        { label: '右腮红', value: 6 },
        { label: '嘴巴', value: 7 },
        { label: '发型', value: 8 }
      ],
      rules: [
        { required: true, message: '请选择五官类型', trigger: 'change' }
      ]
    },
    {
      label: '五官图片',
      prop: 'featureImageUrl',
      slot: true,
      width: 120,
      rules: [
        { required: true, message: '请上传五官图片', trigger: 'change' }
      ]
    },
    {
      label: 'X轴偏移',
      prop: 'offsetX',
      type: 'number',
      precision: 2,
      step: 0.1,
      min: -100,
      max: 100,
      hide: true,
      rules: [
        { required: true, message: '请输入X轴偏移', trigger: 'blur' }
      ]
    },
    {
      label: 'Y轴偏移',
      prop: 'offsetY',
      type: 'number',
      precision: 2,
      step: 0.1,
      min: -100,
      max: 100,
      hide: true,
      rules: [
        { required: true, message: '请输入Y轴偏移', trigger: 'blur' }
      ]
    },
    {
      label: '缩放比例',
      prop: 'scale',
      type: 'number',
      precision: 2,
      step: 0.1,
      min: 0.1,
      max: 10,
      hide: true,
      rules: [
        { required: true, message: '请输入缩放比例', trigger: 'blur' }
      ]
    },
    {
      label: '旋转角度',
      prop: 'rotation',
      type: 'number',
      precision: 2,
      step: 1,
      min: -360,
      max: 360,
      hide: true,
      rules: [
        { required: true, message: '请输入旋转角度', trigger: 'blur' }
      ]
    },
    {
      label: '图层顺序',
      prop: 'layerOrder',
      type: 'number',
      min: 1,
      max: 100,
      hide: true,
      rules: [
        { required: true, message: '请输入图层顺序', trigger: 'blur' }
      ]
    },
    {
      label: '透明度',
      prop: 'opacity',
      type: 'number',
      precision: 2,
      step: 0.1,
      min: 0,
      max: 1,
      hide: true,
      rules: [
        { required: true, message: '请输入透明度', trigger: 'blur' }
      ]
    },
    {
      label: '混合模式',
      prop: 'blendMode',
      type: 'select',
      dicData: [
        { label: '正常', value: 'normal' },
        { label: '正片叠底', value: 'multiply' },
        { label: '滤色', value: 'screen' },
        { label: '叠加', value: 'overlay' },
        { label: '柔光', value: 'soft-light' },
        { label: '强光', value: 'hard-light' }
      ],
      hide: true,
      rules: [
        { required: true, message: '请选择混合模式', trigger: 'change' }
      ]
    },
    {
      label: '可见性',
      prop: 'visible',
      type: 'radio',
      dicData: [
        { label: '可见', value: true },
        { label: '隐藏', value: false }
      ],
      hide: true,
      rules: [
        { required: true, message: '请选择可见性', trigger: 'change' }
      ]
    },
    {
      label: '状态',
      prop: 'status',
      type: 'radio',
      search: true,
      dicData: [
        { label: '启用', value: 1 },
        { label: '禁用', value: 0 }
      ],
      slot: true,
      rules: [
        { required: true, message: '请选择状态', trigger: 'change' }
      ]
    },
    {
      label: '创建时间',
      prop: 'createTime',
      type: 'datetime',
      format: 'YYYY-MM-DD HH:mm:ss',
      width: 160
    },
    {
      label: '更新时间',
      prop: 'updateTime',
      type: 'datetime',
      format: 'YYYY-MM-DD HH:mm:ss',
      width: 160
    }
  ]
}

export default tableOption
